package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Category;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    List<Category> findAll();

    void save(Category category);


    // 分类修改
    void update(Category category);;
//菜品数量
    Integer countDishByCategoryId(Long id);
//套餐数量
    Integer taocanId(Long id);
//分类删除
    void delete(Long id);
}
